import {createApp} from 'vue'
import {createPinia} from 'pinia'
import {registerStore} from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import App from './App.vue'
import {router} from './router'
import './assets/css/comm.css'
import utils from "./utils";

let app = createApp(App)
//注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(createPinia())
app.use(ElementPlus)
app.use(router).mount('#app')
app.directive('reclick', utils.ReClick);
registerStore();
